package com.qxsx.midi.model;

import java.util.Arrays;

/**
 * 
 * <br>isHaveThumbnail  用来判断是否有缩略图  1代表有 0代表没有
 * @author zhgyi
 *
 */
public class MyFile {
	Long _id;
	private String fileName;
	private String fileSize;
	private String fileTime;
	private String filePath;
	private byte[] fileImage;
	private int isHaveThumbnail;

	



	public MyFile(Long _id, String fileName, String fileSize, String fileTime,
				  String filePath, byte[] fileImage, int isHaveThumbnail) {
		super();
		this._id = _id;
		this.fileName = fileName;
		this.fileSize = fileSize;
		this.fileTime = fileTime;
		this.filePath = filePath;
		this.fileImage = fileImage;
		this.isHaveThumbnail = isHaveThumbnail;
	}



	public MyFile(String fileName, String fileSize, String fileTime,
				  String filePath, byte[] fileImage, int isHaveThumbnail) {
		super();
		this.fileName = fileName;
		this.fileSize = fileSize;
		this.fileTime = fileTime;
		this.filePath = filePath;
		this.fileImage = fileImage;
		this.isHaveThumbnail = isHaveThumbnail;
	}



	public Long get_id() {
		return _id;
	}

	public void set_id(Long _id) {
		this._id = _id;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getFileSize() {
		return fileSize;
	}

	public void setFileSize(String fileSize) {
		this.fileSize = fileSize;
	}

	public String getFileTime() {
		return fileTime;
	}

	public void setFileTime(String fileTime) {
		this.fileTime = fileTime;
	}

	public byte[] getFileImage() {
		return fileImage;
	}

	public void setFileImage(byte[] fileImage) {
		this.fileImage = fileImage;
	}

	public int getIsHaveThumbnail() {
		return isHaveThumbnail;
	}
	public void setIsHaveThumbnail(int isHaveThumbnail) {
		this.isHaveThumbnail = isHaveThumbnail;
	}



	@Override
	public String toString() {
		return "MyFile [_id=" + _id + ", fileName=" + fileName + ", fileSize="
				+ fileSize + ", fileTime=" + fileTime + ", filePath="
				+ filePath + ", fileImage=" + Arrays.toString(fileImage)
				+ ", isHaveThumbnail=" + isHaveThumbnail + "]";
	}
	

}
